from typing import TypedDict, List, Optional

import pandas as pd

from app.agent.quant_params import QuantParams


# 1.定义状态对象（传递各节点间的数据）
class QuantState(TypedDict):
    params: QuantParams
    features: dict
    raw_data: List[dict]
    processed_data: List[dict]
    candidate_factors: List[str]
    factors_names: List[str]
    backtest_results: List[str]
    selected_factors: List[str]
